import fetch from '@/api'
// 表格列表
export function getPropertyControlList(params) {
    return fetch({
        method: 'get',
        url: `/dominate/control/page`,
        params,
    })
}

// 新增
export function addPropertyControl(data) {  
    return fetch({
        method:'post',
        url:`/dominate`,
        data,
    })
}

//详情
export function detailPropertyControl(id,params) {
    return fetch({
        method: 'get',
        url: `/dominate/detail/${id}`,
        params,
    })
}
// 调整控制
export function adjustControl(id,data) {
    return fetch({
        method: 'post',
        url: `/dominate/adjust/Control/${id}`,
        data,
    })
}

// 终止控制
export function stopControl(id,data) {
    return fetch({
        method: 'put',
        url: `/dominate/stop/${id}`,
        data,
    })
}

// 控制记录
export function controlRecord(params) {
    return fetch({
        method: 'get',
        url: `/dominate/record/page/${params.id}`,
        params
    })
}

//统计
export function getControlTotal(params) {
    return fetch({
        method: 'get',
        url: `/dominate/count`,
        params,
    })
}

